package jude.java.money.batch.task;

import jude.java.money.batch.Definition;
import jude.java.money.batch.Parameter;



/**
 * 文件信息, 校验文件
 * */
//new BatchFile(1, "fileinfo.php", "filepath", name);
public class BatchFileInfo extends BatchFile {
	
	public BatchFileInfo(String file) {
		super(getParameter(file));
	}
	public BatchFileInfo(Parameter<String[]> p) {
		super(p);
	}
	
	@Override
	protected void initFlags() {
		super.initFlags();
		addFlags(Definition.CONFIG_SAME_CODE);
		addFlags(Definition.CONFIG_CHECK_IP);
	}
	
	@Override
	protected String getLabel() {
		return "INFO";
	}
	
	private static Parameter<String[]> getParameter(String name) {
		return Parameter.zencart(new String[] {
				"fileinfo.php", "filepath", name
		});
	}
}
